package rubik.mutators;

import java.util.ArrayList;

import rubik.ICubeSolution;
import rubik.seqs.Sequence;

public class RandomSeqMutator extends AbstractMutator {

	@Override
	protected void mutateSolution(ICubeSolution sol) {
		
		ArrayList<Sequence> seqs = sol.getSeqs();
		seqs.set(R.nextInt(seqs.size()), sol.getSeqGenerator().createRandom());
		
	}
	
}
